<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <style>
      html,
      body {
        padding: 0;
        margin: 0;
      }
      body {
        width: 100vw;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
      }
      .button {
        margin-top: 20px;
        height: 40px;
        width: calc(100vw - 40px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: lightgray;
      }
      .button:active{
        opacity: 0.5;
      }
    </style>
    <script>
      function test1() {
        AlipayJSBridge.call(
          "postWebViewMessage",
          {
            type: "navigateTo",
            callback: 0,
            param: {
              url: "https://www.baidu.com",
            },
          },
          (result) => {
            console.log(result);
          }
        );
      }
     
    </script>
    <title>官东测试</title>
  </head>
  <body>
    <div class="button" onclick="test1()">
      ceshi 
    </div>
  </body>
</html>
